package com.course.gateway.controller;

import com.course.common.response.BaseResponse;
import com.course.gateway.service.GatewayService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @PROJECT_NAME: course
 * @DESCRIPTION:
 * @Author: 涂玄武
 * @DATE: 2021/7/27 16:35
 */
@RestController
public class GatewayController {

    @Resource
    private GatewayService gatewayService;

    /**
     * 同步网关配置
     */
    @RequestMapping("/synGatewayConfig")
    public BaseResponse synGatewayConfig(){
        return gatewayService.loadAllLoadRoute();
    }

}
